"""20240301_add_uuid_extension

Revision ID: c152fa2433f2
Revises: 
Create Date: 2024-03-02 19:55:18.595995

"""
from typing import Sequence, Union

from alembic import op
from sqlalchemy.sql import text

# revision identifiers, used by Alembic.
#ik 2 save c152fa2433f2_20240301_add_uuid_extension.py
revision: str = 'c152fa2433f2'
down_revision: Union[str, None] = None
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None

def upgrade():
    conn = op.get_bind()
    conn.execute(text("CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";"))


def downgrade():
    conn = op.get_bind()
    conn.execute(text('DROP EXTENSION \"uuid-ossp\"'))
